STEP 14: The loop no longer creates a pig sprite, but the list display still shows the string "pig"!

  • In LOGIC, click and drag out Update Display.
  • Drop it under .remove() but before the loop.
  • Replace my_var in .update() with pet_list.

When you Run your code, watch how the on stage display no longer shows pig!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)